<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			window.onload = function()
			{
				let btn = document.querySelector('button');
				let val = 0;
				
				btn.onclick = function()
				{
					let i = 10000;
					while(i <= 99999)
					{
						if( (parseInt(i / 10000) == parseInt(i % 10)) && ( parseInt((i / 1000) % 10) == parseInt((i / 10) % 10)) )
						{
							console.log(i);
						}
						++i;
					}
				}
			}
		</script>
	</head>
	<body>
		<button>GET</button>
	</body>
</html>